package cn.edu.zhku.mapper;

import cn.edu.zhku.pojo.User;

public interface UserMapper {

    User selectById(Integer userId);

    void insertOne(User user);

    void updateOne(User user);

    void updatePwdAndSaltById(Integer userId, String password, String salt);

    User selectUserRoleMenuByUserId(Integer userId);

    Integer selectUserNumByUsername(String username);

    User selectPasswordAndSaltByUsername(String username);

    User selectPasswordAndSaltById(Integer userId);

    Integer selectUserNumByNo(String no);

}
